contains

abstract fun contains(name: String): Boolean

Returns true when an attribute with the given name is specified on the element or has a default value, otherwise returns false.

Parameters

name

the name of the attribute

Throws

when name is empty or blank

when the element is closed